<template>
  <div>
    <!-- 上下两个代码等效 -->
    <hm-count :value="count" @input="fn"></hm-count>
  </div>
</template>

<script>
import HmCount from "./components/HmCount.vue";
export default {
  components: { HmCount },
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    fn(newValue) {
      this.count = newValue;
    },
  },
};
</script>

<style></style>
